package org.homonoia.model.task;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;

import org.homonoia.model.core.Row;

public class TaskResults implements Serializable {

    private static final long serialVersionUID = -2284567677306841576L;

    private ArrayList<Row> rowList = null;
    private String id;

    public TaskResults(final String id) {
	super();

	this.id = id;
	this.rowList = new ArrayList<Row>();
    }

    public final String getID() {
	return id;
    }

    public final ArrayList<Row> getResultSet() {
	return rowList;
    }

    public void insertRow(final Row row) {
	rowList.add(row);
    }

    private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException {
	is.defaultReadObject();
    }

    private void writeObject(ObjectOutputStream os) throws IOException {
	os.defaultWriteObject();
    }
}
